<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<title>个人信息（注册用户）</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" />
	<link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.css}"/>
</head>

<body>
<div id="wrap">
	<div id="top_content">
			<div id="header">
				<div id="rightheader">
					<p>
						[[${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}]]
						<br />
					</p>
				</div>
				<div id="topheader">
					<h1 id="title">
						<a href="#">影像制品租凭管理系统</a>
					</h1>
				</div>
				<div id="navigation">
					<ul>
						<li>
							<a href="/ims/product/findAll?type=user">管理影像制品</a>
						</li>
						<li>
							<a style="color: red" th:href="@{/user/findUser(id=${session.user.id})}">个人信息</a>
						</li>
						<li>
							<a href="/ims/index">退出登陆</a>
						</li>
					</ul>
				</div>
			</div>
		<div id="content">
			<p id="whereami"></p>
			<h1>
				更新用户个人信息:
			</h1>
			<form th:action="@{/user/update}" method="post">
				<table cellpadding="0" cellspacing="0" border="0" class="form_table">
					<input type="hidden" name="id" th:value="${user.id}"> <!--隐藏域传输id-->
					<tr>
						<td valign="middle" align="right">
							用户名:
						</td>
						<td valign="middle" align="left">
							<input disabled type="text" class="inputgri" name="username" th:value="${user.username}"/>
						</td>
					</tr>
					<tr>
						<td valign="middle" align="right">
							真实姓名:
						</td>
						<td valign="middle" align="left">
							<input type="text" class="inputgri" name="realname" th:value="${user.realname}"/>
						</td>
					</tr>
					<tr>
						<td valign="middle" align="right">
							密码:
						</td>
						<td valign="middle" align="left">
							<input type="text" class="inputgri" name="password" th:value="${user.password}"/>
						</td>
					</tr>
					<tr>
						<td valign="middle" align="right">
							性别:
						</td>
						<td valign="middle" align="left">
<!--							<input type="text" class="inputgri" name="sex" th:value="${user.sex}"/>-->
							<input th:checked="${user.sex} eq 'man'" type="radio" class="inputgri" name="sex" value="man"> 男
							<input th:checked="${user.sex} eq 'woman'" type="radio" class="inputgri" name="sex" value="woman"> 女
						</td>
					</tr>
					<tr>
						<td valign="middle" align="right">
							年龄:
						</td>
						<td valign="middle" align="left">
							<input type="text" class="inputgri" name="pName" th:value="${user.age}"/>
						</td>
					</tr>
					<tr>
						<td valign="middle" align="right">
							电话:
						</td>
						<td valign="middle" align="left">
							<input type="text" class="inputgri" name="pName" th:value="${user.phone}"/>
						</td>
					</tr>
				</table>
				<p>
					<input type="submit" class="btn btn-primary" value="更新个人信息" />
				</p>
			</form>
		</div>
	</div>
	<div id="footer">
		<div id="footer_bg">
			copyright@2021
		</div>
	</div>
</div>
</body>
</html>
